package com.feihao.zhou.service.impl;

import com.feihao.zhou.dao.UserDao;
import com.feihao.zhou.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userService")
public class UserServiceImpl implements UserService {
    public UserServiceImpl() {
        System.out.println("service构造执行");
    }

    @Autowired
    private UserDao userDao;

    public void say() {
        System.out.println("UserService执行了");
        userDao.say();
    }
}
